package edu.sctu.alex.projectPratice.subwaySystem2.MetroStation;

import java.util.Calendar;

/**
 *  地铁的计时处理类
 * Created by user03 on 2015/6/7.
 */
public class MonitorSystem {


    public Calendar getTimeData() {
        return timeData;
    }

    public void setTimeData(Calendar timeData) {
        this.timeData = timeData;
    }

    private Calendar timeData;

    public void alarm( int count){

        Calendar calendar  =  Calendar.getInstance();

        setTimeData(calendar);
        System.out.println("进站时间："+getTimeData().getTime());

        getTimeData().add(getTimeData().MINUTE, count*2);

        System.out.println("出战时间:"+getTimeData().getTime());




    }
}
